<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <body>

        <ui:composition template="./MainTemplate.xhtml">

            <ui:define name="top">

            </ui:define>

            <ui:define name="left">

            </ui:define>

            <ui:define name="right">

            </ui:define>

            <ui:define name="content">
                <f:view>
                    <p:panel header="Crear/Editar Cobros" footer="Formulario Validado">
                    <h:form>
                        <p:growl life="3000"/>
                        <p:panelGrid columns="2">
                            <p:outputLabel value="Id del Registro:" for="idRegistro" />
                            <p:selectOneMenu id="idRegistro" value="#{cobroBean.idRegistro}" title="IdRegistro" required="true" requiredMessage="The IdRegistro field is required.">
                                <!-- TODO: update below reference to list of available items-->
                                <f:selectItems value="#{cobroBean.listaRegistro}" var="item" itemValue="#{item.id}"/>
                            </p:selectOneMenu>
                            <p:commandButton action="RegistroVista" value="Cancelar" immediate="true" ajax="false"/>
                            <p:commandButton value="Aceptar" action="#{cobroBean.procesarSeleccion}" ajax="false"/>
                        </p:panelGrid>
                    </h:form>
                    </p:panel>
                </f:view>

            </ui:define>

        </ui:composition>

    </body>
</html>
